file(GLOB SOURCES *.cpp *.cc)
file(GLOB HEADERS include/*.h)

#FLEX_TARGET(libparnt libparnt.lex ${CMAKE_CURRENT_BINARY_DIR}/libparnt.yy.cc)

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DYYLMAX=32768")

add_library(Szarp STATIC
  ${SOURCES} ${HEADERS}
)

target_include_directories(Szarp
  PUBLIC
    $<INSTALL_INTERFACE:include>
    $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
)

target_link_libraries(Szarp
  INTERFACE
    ${Boost_LIBRARIES}
    ${SYSTEMD_LIBRARIES}
)
